import request from '@/utils/request'

export function getInfo() {
  return request({
    url: '/adminUser/info',
    method: 'get'
  })
}

export function list(page, size) {
  return request({
    url: '/adminUser/list',
    method: 'post',
    data: {
      page,
      size
    }
  })
}

export function addOrEdit(data) {
  return request({
    url: '/adminUser/addOrEdit',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/adminUser/del',
    method: 'post',
    data: {
      id
    }
  })
}
